﻿<%@ Page Language="c#" CodeBehind="Contract_Report.aspx.cs" MasterPageFile="~/App_MasterPages/layout.Master"
    AutoEventWireup="false" Inherits="ud_gSDMS.contract.Contract_Report" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<asp:Content ContentPlaceHolderID="leftContent" ID="MPLeftPane" runat="server" />
<asp:Content ContentPlaceHolderID="mainContent" ID="MPContent" runat="server">

<portal:mojoPanel ID="mp1" runat="server" ArtisteerCssClass="art-Post" RenderArtisteerBlockContentDivs="true">
    <mp:CornerRounderTop id="ctop1" runat="server" />
    <asp:Panel ID="pnlStoreManager" runat="server" CssClass="art-Post-inner panelwrapper gSDMS">
            <portal:ModuleTitleControlCustom ID="moduleTitle" runat="server" RenderArtisteer="true" UseLowerCaseArtisteerClasses="true"/>
        <portal:mojoPanel ID="MojoPanel1" runat="server" ArtisteerCssClass="art-PostContent">
        <div class="modulecontent">
            <fieldset>
<%--            <asp:UpdatePanel ID='updatePanel' runat="server" >
                <ContentTemplate>--%>

                <%--<mp:SiteLabel ID="lblInfo" CssClass="title info" runat="server" ResourceFile="gSDMSResource" ConfigKey="gSDMSHostingPackage" />--%>
                <div class="div_title">
                    <a href="/gsdmsmodule/contract/Contract_Report.aspx?pageid=16">Contract</a>
                    &nbsp;>&nbsp;
                    <a href="#">Report</a>
                </div>
                <br />
                <div class="div_Edit div_search">
                    <table cellpadding='5' cellspacing='0' border='0' class="tb_search" >
                        <tr>
                            <td class="title">From date:</td>
                            <td class="input"> 
                                <telerik:RadDatePicker ID="datContract_Date_from" runat="server" 
                                        DateInput-DateFormat="dd/MM/yyyy" DateInput-CssClass="txtInput" DateInput-MaxLength="10" Width="120px" Height="15px"
                                        DatePopupButton-Width="23px" DatePopupButton-Height="23px" 
                                >
                                    <Calendar>
                                        <SpecialDays>
                                            <telerik:RadCalendarDay Repeatable="Today" ItemStyle-CssClass="rcToday" />
                                        </SpecialDays>
                                    </Calendar>
                                </telerik:RadDatePicker>
          
                            </td>
                            
                            <td class="title">To date:</td>
                            <td class="input"> 
                                <telerik:RadDatePicker ID="datContract_Date_to" runat="server" 
                                        DateInput-DateFormat="dd/MM/yyyy" DateInput-CssClass="txtInput" DateInput-MaxLength="10" Width="120px" Height="15px"
                                        DatePopupButton-Width="23px" DatePopupButton-Height="23px"
                                >
                                    <Calendar>
                                        <SpecialDays>
                                            <telerik:RadCalendarDay Repeatable="Today" ItemStyle-CssClass="rcToday" />
                                        </SpecialDays>
                                    </Calendar>
                                </telerik:RadDatePicker>
                        
                            </td>
                        </tr>

                        <tr>
                            <td class="title">Contract code:</td>
                            <td class="input">
                                <telerik:RadComboBox ID="cboContract_Code" AllowCustomText="true" runat="server" CssClass ="cbo_rad" Width="200px" EmptyMessage="" Filter="Contains">
                                </telerik:RadComboBox>
                            </td>
                            
                            <td class="title">Contract name:</td>
                            <td class="input">
                                <telerik:RadComboBox ID="cboContract_Name" AllowCustomText="true" runat="server" CssClass ="cbo_rad" Width="200px" EmptyMessage="" Filter="Contains">
                                </telerik:RadComboBox>
                            </td>
                        </tr>

                        <tr>
                            <td class="title">Status:</td>
                            <td class="input">
                                <telerik:RadComboBox ID="cboStatus" AllowCustomText="false" runat="server" CssClass ="cbo_rad" Width="200px" EmptyMessage="">
                                </telerik:RadComboBox>
                            </td>
                                                        
                            <td class="title">Account manager:</td>
                            <td class="input">
                                <telerik:RadComboBox ID="cboAccount_Manager" AllowCustomText="true" runat="server" CssClass ="cbo_rad" Width="200px" EmptyMessage="">
                                </telerik:RadComboBox>
                            </td>
                        </tr>
                        
                        <tr>
                            <td class="title">Active:</td>
                            <td class="input"><asp:CheckBox ID="chkActive" runat="server" CssClass="chkInput" Checked="true"></asp:CheckBox></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>
                                <asp:ImageButton ID='btnSearch' runat="server" ImageAlign="Left" ImageUrl="~/Data/Sites/1/skins/StandardSkin/images/search.png" Width="82px" Height="23px" />
                                <div class="div_AddNew div_Edit" >
                                    <asp:Button id="btnExport_Excel" runat="server" Text="Exp Excel" CssClass="btn_01"/>
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
                <br />
                <div class="gSDMS_Grid">
                    <asp:GridView ID="grdContract" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" Width="100%" 
                        AllowPaging="true" AllowSorting="true" AutoGenerateColumns="false" PageSize="10" PagerSettings-Position="Bottom" PagerStyle-HorizontalAlign="Right"
                        CssClass="css_grid" DataKeyNames="Contract_ID"
                        >                        
                        <AlternatingRowStyle CssClass='AlternatingRowStyle' />
                        <EditRowStyle CssClass='EditRowStyle' />
                        <FooterStyle CssClass='FooterStyle' />
                        <HeaderStyle CssClass='HeaderStyle' />
                        <PagerStyle CssClass='PagerStyle' HorizontalAlign="Right" />
                        <RowStyle CssClass='RowStyle' />
                        <SelectedRowStyle CssClass='SelectedRowStyle' />
                   
                        <Columns >
                            <asp:TemplateField HeaderText="#" ItemStyle-CssClass="stt">
                                <ItemTemplate><%# grdContract.PageIndex * grdContract.PageSize + grdContract.Rows.Count + 1%></ItemTemplate></asp:TemplateField>
                            
                            <asp:TemplateField HeaderText="Code" ItemStyle-CssClass="text" SortExpression='Contract_Code' ItemStyle-Width="250">
                                <ItemTemplate><%#Eval("Contract_Code")%></ItemTemplate></asp:TemplateField>
                            
                            <asp:TemplateField HeaderText="Name" ItemStyle-CssClass="txt" SortExpression="Contract_Name" >
                                <ItemTemplate><%#Eval("Contract_Name")%></ItemTemplate></asp:TemplateField>
                            
                            <asp:TemplateField HeaderText="Date" ItemStyle-CssClass='date' SortExpression="Contract_Date" ItemStyle-Width="60">
                                <ItemTemplate><%# Eval("Contract_Date", "{0:dd/MM/yyyy}")%></ItemTemplate>
                                <ItemStyle HorizontalAlign="Center"/></asp:TemplateField>
                            
                            <asp:TemplateField HeaderText="Account manager" ItemStyle-CssClass="txt" SortExpression="Account_Manager" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="110">
                                <ItemTemplate><%#Eval("Account_Manager")%></ItemTemplate></asp:TemplateField>
                            
                            <asp:TemplateField HeaderText="Assigned to" ItemStyle-CssClass="txt" SortExpression="Assigned_To" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="70">
                                <ItemTemplate><%#Eval("Assigned_To")%></ItemTemplate></asp:TemplateField>
                            
                            <asp:TemplateField HeaderText="Status" ItemStyle-CssClass="txt" SortExpression="Status" ItemStyle-Width="150">
                                <ItemTemplate><%#Eval("Status")%></ItemTemplate></asp:TemplateField>
                            
                            <%--------%>
                            
                            <asp:TemplateField HeaderText="Detail" ItemStyle-CssClass="edit-del">
                                <ItemTemplate>
                                    <asp:ImageButton ID="btnDetail" CommandName="detail" CommandArgument='<%# Eval("Contract_ID") %>' CssClass="delete" runat="server" ToolTip="Detail" ImageUrl="~/Data/Sites/1/skins/StandardSkin/images/add_01.png" />
                                </ItemTemplate></asp:TemplateField>
                        </Columns>

                        <EmptyDataTemplate>
                            <div class="div_dataEmpty">Data not found!</div>
                        </EmptyDataTemplate>
                    </asp:GridView>

                   
                  
                </div>

                <div style="display:none">
                    
                    <telerik:RadGrid ID="hiddenGrid" GridLines="Both" runat="server">
                            <ExportSettings>
                                <Excel Format="Html" />
                            </ExportSettings>
                        </telerik:RadGrid>
                </div>
                   
                  
                </div>
   
<%--                </ContentTemplate>
            </asp:UpdatePanel>--%>
                
            </fieldset>
        </div>
        </portal:mojoPanel>
        <div class="cleared"></div>
    </asp:Panel>
    <mp:CornerRounderBottom id="cbottom1" runat="server" />
    </portal:mojoPanel>
</asp:Content>
<asp:Content ContentPlaceHolderID="rightContent" ID="MPRightPane" runat="server" />
<asp:Content ContentPlaceHolderID="pageEditContent" ID="MPPageEdit" runat="server" />
